package com.example.demo1;

public class HandlerC extends Handler {

    @Override
    public void handle(String msg) {
        String replace = msg.replace("C", "");
        System.out.println("进入HandlerC执行handle方法--->>>>> " + replace);
        //判断有没有下一个拦截器了
        if (successor != null) {
            successor.handle(replace);
        } else {
            System.out.println("请求终止 = ");
        }

    }
}
